# class_init.py

class Person:
    def __init__(self,name):
        self.name = name
    def __init__(self, name, sex):
        self.name = name
        self.sex = sex
    def sayHi(self):
        print 'Hello, my name is', self.name
        print 'I am a' , self.sex


#p = Person('xiaolong')
#p.sayHi()

q = Person('xiaolong' , 'boy')
q.sayHi()
